import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/pages/index'
import My from '@/pages/my'
import NewsDetail from '@/pages/newsDetail'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
    	path:'/my',
    	name:"My",
    	component:My
    },
    {
    	path:'/news/:id',
    	name:'NewsDetail',
    	component:NewsDetail
    }
  ]
})
